package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * Banner
 * </p>
 *
 * @author myg
 * @since 2024-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MjBanner对象", description="Banner")
public class MjBanner extends Model<MjBanner> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图片地址 ")
    private String url;

    @ApiModelProperty(value = "跳转地址")
    private String target;

    @ApiModelProperty(value = "状态 0 下线 1 上线")
    private Integer status;

    @ApiModelProperty(value = "1 首页 2 解决方案 3 产品  4.API  5.关于 6.支持与帮助7、新闻中心  8.协议")
    private Integer position;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "banner 类型 1 纯图片 2 图片+视频")
    private Integer type;

    @ApiModelProperty(value = "视频地址（当类型为2时候必传）")
    private String videoUrl;

    @ApiModelProperty(value = "主标题")
    private String title;

    @ApiModelProperty(value = "副标题")
    private String subtitle;

    @ApiModelProperty(value = "前端需求")
    private String alt;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
